package cn.edu.sgu.www.mhxysy.entity.chongwu;

import cn.edu.sgu.www.mhxysy.consts.IdentifierPrefixes;
import cn.edu.sgu.www.mhxysy.util.StringUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 宠物资质
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("chongwu_zizhi")
public class ChongwuZizhi implements Serializable {
	private static final long serialVersionUID = 18L;

	@TableId(value = "id", type = IdType.INPUT)
	@ApiModelProperty(value = "ID")
	private String id;

	/**
	 * 攻击资质
	 */
	@ApiModelProperty(value = "攻击资质")
	private Integer gjzz;

	/**
	 * 防御资质
	 */
	@ApiModelProperty(value = "防御资质")
	private Integer fyzz;

	/**
	 * 体力资质
	 */
	@ApiModelProperty(value = "体力资质")
	private Integer tlzz;

	/**
	 * 法力资质
	 */
	@ApiModelProperty(value = "法力资质")
	private Integer flzz;

	/**
	 * 速度资质
	 */
	@ApiModelProperty(value = "速度资质")
	private Integer sdzz;

	/**
	 * 成长
	 */
	@ApiModelProperty(value = "成长")
	private Integer chengzhang;

	/**
	 * 宠物ID
	 */
	@ApiModelProperty(value = "宠物ID")
	private String chongwuId;

	public String uuid() {
		return IdentifierPrefixes.PREFIX_CWZZ + StringUtils.uuid();
	}

}